package com.fmjava.config;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/*
 *@ClassName VodAppConfig
 *@Description TODO
 *@Author 吃麻椒的花酱
 *@Date 2021/8/31 9:13
 *@Version 1.0
 */
@Data
@Configuration()
@ConfigurationProperties(prefix = "aliyun")
public class VodAppConfig implements InitializingBean {
    private String accessKeyId;
    private String accessKeySecret;
    public static String ACCESS_KEY_ID;
    public static String ACCESS_KEY_SECRET;


    @Override
    public void afterPropertiesSet() throws Exception {
        ACCESS_KEY_ID = accessKeyId;
        ACCESS_KEY_SECRET = accessKeySecret;
    }
}